package modules.majiang.data
{

	/**
	 * 桌子上玩家数据模型 
	 * @author xumin.xu
	 * 
	 */
	public class TablePlayerDataModel
	{
		/**
		 * 座位编号
		 **/ 
		[Bindable]
		public var chairId:int=1;
		
		/**
		 * 用户名 
		 */		
		[Bindable]
		public var userName:String="salfau";
		
		/**
		 * 本房间内的剩余赌注
		 **/ 
		[Bindable]
		public var money:Number;
		
		/**
		 * 头像
		 **/
		[Bindable]
		public var avatarStr:String = "male2";
		
		private var _avatarId:uint = 1;
		
		public function set avatarId(value:uint):void
		{
			value = Math.max(1,value);
			_avatarId = value;
			avatarStr = "" + ["male", "female"][_sex] + _avatarId;
		}
		
		private var _sex:uint = 0;
		
		public function sex(value:uint):void
		{
			_sex = value;
			avatarStr = "" + ["male", "female"][_sex] + _avatarId;
		}
		
		
		
		
		/**
		 * 该玩家当前是能操作
		 **/
		[Bindable]
		public var isCurrentActionPlayer:Boolean = false;
		
		
	}
}
